home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!craiga
- From: craiga@netcom.com (Craig Arnush)
- Subject: Re: Problems using templates in Borland v5.0
- Message-ID: <craigaDq3tCp.Joq@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <31756C1D.4E67@nando.net> <craigaDq15pt.2rL@netcom.com> <3176C694.1E0B@nando.net>
- Date: Fri, 19 Apr 1996 10:05:13 GMT
- Sender: craiga@netcom14.netcom.com
-
- Caius Martius <caius@nando.net> writes:
- >
- >okay, the problem breaks down like this... If I put my template class
- >declarations and definitions in the same *.cpp as main(), everything
- >works fine... BUT!!! (and there is always a but) If I put my template
- >classes in seperate *.H and *.cpp files, then I get the unresolved
- >external references to my template classes... I think that my problem
- >may be with how I am placing files into the project manager...?
-
- It sounds to me like one of your .CPP files isn't making it to the linker
- for some reason. Quite frankly, I haven't the slightest idea what could
- be causing that, unless you forgot to put the appropriate file into the
- project window as a child node of the main target; but I suspect that
- would have been the first thing you would have checked.
-
- Why not try using the "generate makefile" option and take a look at the
- result to see if you can find anything missing there. If not, then try
- using the makefile to see if it builds the project properly.
-
- Me
- --
- /-------------------------------------------------------------------\
- | Craig Arnush | "Only the heir to the throne of the kindom of |
- | | idiots fights a war on twelve fronts." |
- | craiga@netcom.com | - L. Mollari |
- \-------------------------------------------------------------------/
-